<?php

	$doc = new DOMDocument();
	$doc->load('http://twitter.com/statuses/user_timeline/OperacoesRio.xml');
	
	"<html><body>";
	echo  '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
	
	$statuses = $doc->getElementsByTagName( "statuses" );
	
	foreach( $statuses as $status ) 
	{
		$texts = $status->getElementsByTagName("text");
		$datas = $status->getElementsByTagName("created_at");
		
		$datasTemp = array();
		$datasTemp[0] = $datas->item(0)->nodeValue;
		
		for ($i= 0, $j=0 ; $i < 20 && $j <= 40 ; $i++, $j+=2) 
		{
			$datasTemp[$i] = $datas->item($j)->nodeValue;
		}
		
		for ($i= 0 ; $i < $texts->length ; $i++ ) 
		{	
			$text = $texts->item($i)->nodeValue;
			$data = $datasTemp[$i];
			
			echo $text . " | " . $data;
			echo "<br/>";
		} 
	}

	echo "</body></html>"
?>